package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Hotel;
import cn.wolfcode.trip.base.domain.HotelCatalog;
import cn.wolfcode.trip.base.query.HotelQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotelCatalogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HotelCatalog record);

    HotelCatalog selectByPrimaryKey(Long id);

    List<HotelCatalog> selectAll();

    int updateByPrimaryKey(HotelCatalog record);

    List<HotelCatalog> selectForList(QueryObject qo);

    Integer selectSquenceByhotelId(@Param("hotelId") Long hotelId);

    List<HotelCatalog> listAll(@Param("qo") QueryObject qo, @Param("hotelId") Long hotelId);

    List<HotelCatalog> selectByRecommend(HotelQueryObject qo);

}